<template>
  <div class="app-container org">
    <!-- 左侧区域 -->
    <el-card class="leftCard">
      <el-tabs v-model="activityName" class="demo-tabs">
        <el-tab-pane label="未排程" name="first">
          <isScheduling v-if="activityName == 'first'" @getSeqId="getSeqId" :isSchedu="0" />
        </el-tab-pane>
        <el-tab-pane label="已排程" name="second">
          <isScheduling v-if="activityName == 'second'" @getSeqId="getSeqId" :isSchedu="1" />
        </el-tab-pane>
      </el-tabs>
    </el-card>

    <!-- 右侧区域 -->
    <el-card class="rightCard">
      <schedulingDetails :contractId="form.contractId" :rowClickNum="num" />
    </el-card>
  </div>
</template>

<script setup name="PcSend">
import isScheduling from "./components/isScheduling"
import schedulingDetails from "./components/schedulingDetails"

const activityName = ref("first")
const form = ref({})
const num = ref(0)

function getSeqId(val) {
  num.value = num.value + 1
  form.value.contractId = val
}
</script>

<style></style>